package com.erp.erp_project.model;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author the bright star
 */
@Data
@NoArgsConstructor
public class Result<T> {
    private boolean success;
    private Integer code;
    private String msg;
    private T data;

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
        if (code==200){
            this.success=true;
        }
    }
}
